using System;
using System.Runtime.Serialization;

using SIMA.Core.Attributes;
using SIMA.Core.Data.Validators;
using SIMA.Core.Data.Entity;

namespace SIMA.Entities
{

	[Table("T_C_Alerta")]
	[Serializable]
    public class T_C_Alerta : XmlEntity
	{
		[DataMember]
		[PrimaryKey("Id_Alerta")]
		[Numeric]
		public int Id_Alerta{get; set;}
		[DataMember]
		[ForeignKey("Id_Equipo")]
		public string Id_Equipo{get; set;}
		[DataMember]
		[DataField("ACorreo")]
		public string ACorreo{get; set;}
		[DataMember]
		[DataField("FechaEnvio")]
		public DateTime FechaEnvio{get; set;}
		[DataMember]
		[DataField("ValorDemanda")]
		public float ValorDemanda{get; set;}
		[DataMember]
		[ForeignKey("Id_Estado")]
		[Numeric]
		public int Id_Estado{get; set;}

	}
}
